package entity;

import java.io.Serializable;

import java.util.Date;

public class Topic implements Serializable {
    private Integer fid;
    private String ftitle;
    private String fcontext;
    private String fpic;
    private Date ftime;
    private Users uid;
    private Integer fdel;

    public Topic() {
    }

    public Topic(Integer fid) {
        this.fid = fid;
    }

    public Topic(String ftitle) {
        this.ftitle = ftitle;
    }

    public Topic(Integer fid, String ftitle) {
        this.fid = fid;
        this.ftitle = ftitle;
    }

    public Topic(String ftitle, String fcontext, String fpic) {
        this.ftitle = ftitle;
        this.fcontext = fcontext;
        this.fpic = fpic;
    }

    public Topic(String ftitle, String fcontext, String fpic, Users uid) {
        this.ftitle = ftitle;
        this.fcontext = fcontext;
        this.fpic = fpic;
        this.uid = uid;
    }

    public Topic(Integer fid, String ftitle, String fcontext, String fpic, Date ftime, Users uid, Integer fdel) {
        this.fid = fid;
        this.ftitle = ftitle;
        this.fcontext = fcontext;
        this.fpic = fpic;
        this.ftime = ftime;
        this.uid = uid;
        this.fdel = fdel;
    }

    public Integer getFid() {
        return fid;
    }

    public void setFid(Integer fid) {
        this.fid = fid;
    }

    public String getFtitle() {
        return ftitle;
    }

    public void setFtitle(String ftitle) {
        this.ftitle = ftitle;
    }

    public String getFcontext() {
        return fcontext;
    }

    public void setFcontext(String fcontext) {
        this.fcontext = fcontext;
    }

    public String getFpic() {
        return fpic;
    }

    public void setFpic(String fpic) {
        this.fpic = fpic;
    }

    public Date getFtime() {
        return ftime;
    }

    public void setFtime(Date ftime) {
        this.ftime = ftime;
    }

    public Users getUid() {
        return uid;
    }

    public void setUid(Users uid) {
        this.uid = uid;
    }

    public Integer getFdel() {
        return fdel;
    }

    public void setFdel(Integer fdel) {
        this.fdel = fdel;
    }
}
